/*
 * @Author: Lijin
 * @Date: 2024-09-03 16:01:02
 * @LastEditors: Lijin
 * @LastEditTime: 2024-09-04 15:51:28
 * @FilePath: \airbnb---reaction\src\index.js
 * @Description:
 *
 * Copyright (c) 2024 by 18323406700, All Rights Reserved.
 */
import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import { Provider } from "react-redux";
import { ThemeProvider } from "styled-components";

import App from "@/App";
import "normalize.css";
import "@/assets/css/index.less";
import store from "./store";
import theme from "./assets/theme";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <Suspense fallback="loading">
    <Provider store={store}>
      <ThemeProvider theme={theme}>
        <HashRouter>
          <App />
        </HashRouter>
      </ThemeProvider>
    </Provider>
  </Suspense>
);
